<?php
@require_once("config.php");
$neirong=$_GET["neirong"];
$str="select * from newinfo where goodsname like '%$neirong%'";
$result=mysql_query($str);
$list=array();
while($item=mysql_fetch_array($result)){
    $temp=array();
    $temp["id"]=$item["id"];
    $temp["goodsname"]=$item["goodsname"];
    $temp["price"]=$item["price"];
    $temp["smallimg"]=$item["smallimg"];
    $list[]=$temp;
}

echo json_encode($list);



?>